package com.example.administrator.androidlibrary.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.transition.Visibility;
import android.view.Window;
import com.blankj.utilcode.util.BarUtils;
import com.example.administrator.androidlibrary.utils.ActivityAnimateUtil;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2018/4/4 0004.
 */
interface BaseActivityInterface{
    void initActivityAnimation();
}
public abstract class BaseActivity extends AppCompatActivity implements BaseActivityInterface{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
        getSupportActionBar().hide();
        ButterKnife.bind(this);
        BarUtils.setNavBarVisibility(this,false);
        initActivityAnimation();
    }
    protected void setActivityAnimate(Visibility enter,Visibility exit){
        getWindow().setEnterTransition(enter);
        getWindow().setExitTransition(exit);
    }
}
